package com.jiangyg.mall.ware.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 类描述：商品库存
 * 
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-30 07:41:16
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
public class WareSkuDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	private Long id;

	/**
	 * SKUID
	 */
	@NotNull
	private Long skuId;

	/**
	 * 仓库id
	 */
	@NotNull
	private Long wareId;

	/**
	 * 仓库名称
	 */
	private String wareName;

	/**
	 * 库存数
	 */
	@NotNull
	private Integer stock;

	/**
	 * SKU名称
	 */
	private String skuName;

	/**
	 * 锁定库存
	 */
	@NotNull
	private Integer locked;

}
